<?php
namespace App\Modules\Fund;
use App\Modules\AdapterApi;
use App\Services\Fund\FundIndex;
/**
 * Created by PhpStorm.
 * User: 97606
 * Date: 2018/6/12
 * Time: 10:10
 */
class Withdraw extends AdapterApi
{
     /*管理员 - 获取提现列表*/
    public function adminWithdrawList(): array 
    {
        $data = pick_array($this->postData, ['page', 'listRows','status','token','keywords']);
        return FundIndex::Withdraw()->adminWithdrawList($data);
    }

    /*管理员 - 审核提现 review_id review_info */
    public function auditWithdraw(): array 
    {
         $data = pick_array($this->postData, ['id', 'status','token']);
        return FundIndex::Withdraw()->auditWithdraw($data);


       /* $data = $this->haveIssetReceiveData(['id'=>0, 'status'=>0, 'token'=>' '], ['']);
        $checkAuth = 'serveruser/auth/Token/hGetAll,serveruser/auth/App/find,serverfund/withdraw/Withdraw/auditWithdraw';
        return $this->stepRun($data, $checkAuth, 'auditWithdraw', 'auditWithdraw', '1', $this->withdrawValidate, $this->withdrawLogic);*/
        
    }

    /*管理员 - 审核转账 transfer_id transfer_info */
    public function auditTransfer(): array 
    {
        $data = pick_array($this->postData, ['id', 'status','token']);
        return FundIndex::Withdraw()->auditTransfer($data);
        
       /* $data = $this->haveIssetReceiveData(['id'=>0, 'status'=>0, 'token'=>' '], ['']);
        $checkAuth = 'serveruser/auth/Token/hGetAll,serverfund/withdraw/Withdraw/auditTransfer';
        return $this->stepRun($data, $checkAuth, 'auditTransfer', 'auditTransfer', '1', $this->withdrawValidate, $this->withdrawLogic);*/
    }
}